package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;

public final class xcupdate_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static java.util.Vector _jspx_dependants;

  static {
    _jspx_dependants = new java.util.Vector(1);
    _jspx_dependants.add("/css.jsp");
  }

  public java.util.List getDependants() {
    return _jspx_dependants;
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    JspFactory _jspxFactory = null;
    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html; charset=GBK");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<title>\r\n");
      out.write("伊利优酸乳炫彩奖查询\r\n");
      out.write("</title>\r\n");
      out.write("\n");
      out.write("<!-- ¶¨Òå¹«¹²µÄ HTTP META ÐÅÏ¢, °üÀ¨ charset, cache policy µÈ  -->\n");
      out.write("   <META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html;CHARSET=GBK\">\n");
      out.write("   <meta http-equiv=\"Expires\" content=\"Tue, 20 Jul 1971 00:00:00 GMT\">\n");
      out.write("\n");
      out.write("<!-- ¶¨Òå¹«¹²µÄ Cascade-Style-Sheet -->\n");
      out.write("   <STYLE TYPE=\"text/css\">\n");
      out.write("\n");
      out.write("   a:link    { color: #3333ff; text-decoration: none}\n");
      out.write("   a:active  { color: #d34364; text-decoration: underline}\n");
      out.write("   a:visited { color: #3333ff; text-decoration: none}\n");
      out.write("   a:hover   { font-weight: normal}\n");
      out.write("\n");
      out.write("   <!-- ¶¨Òå Form Item µÄCSS -->\n");
      out.write("\n");
      out.write("   .formbutton    {background-color:#edefe0;height=20;font-size:9pt;border:#a0a070 1px solid;}\n");
      out.write("   .formtext1  \t  {background-color:white;height=100;font-size:9pt;border:#a0a070 1px solid;}\n");
      out.write("   .formtext  \t  {background-color:white;height=20;font-size:9pt;border:#a0a070 1px solid;}\n");
      out.write("   .formpassword  {background-color:white;height=20;font-size:9pt;border:#a0a070 1px solid;}\n");
      out.write("   .formtextarea  {background-color:white;font-size:9pt;border:#a0a070 1px solid;}\n");
      out.write("   .formselect    {background-color:#edefe0;height=20;font-size:9pt;border:#a0a070 1px solid;}\n");
      out.write("   .formmultiselect    {background-color:#edefe0;font-size:9pt;border:#a0a070 1px solid;}\n");
      out.write("   .formradiobox  {background-color:#edefe0;height=20;font-size:9pt;border:#a0a070 1px solid;}\n");
      out.write("   .formcheckbox  {background-color:#edefe0;height=20;font-size:9pt;border:#a0a070 1px solid; }\n");
      out.write("   .formfile      {background-color:#edefe0;height=20;font-size:9pt;border:#a0a070 1px solid;}\n");
      out.write("\n");
      out.write("   .servicename   {font-family: Arial; font-weight: normal; font-size: 10pt;}\n");
      out.write("   .bodynormal    {background-color: #FFFFFF;}   <!-- Õý³£ÇøÓòµÄ body CSS -->\n");
      out.write("   .bodymenu\t  {background-color: #2B63F5;}   <!-- Menu ÇøÓòµÄ Body CSS -->\n");
      out.write("   .title     \t  {font-family: Arial; font-weight: bold;   font-size: 15px; color: black;}\n");
      out.write("   .listhead      {font-family: Arial; font-weight: bold;   font-size: 10pt; color: #212116}\n");
      out.write("   .bigtext          {font-family: Arial; font-weight: bold; font-size: 10pt; color: #212116}\n");
      out.write("   .bluetext          {left:5; font-family: Arial; font-weight: normal; font-size: 11pt; color: #blue}\n");
      out.write("   .text          {font-family: Verdana, Arial, Helvetica, MingLiu, 'ËÎÌå', sans-serif;font-size: 11px;color: #333;}\n");
      out.write("   .smalltext     {font-family: Arial; font-weight: normal; font-size: 9pt; color: #212116}\n");
      out.write("   .copyrighttext      {font-family: Arial; font-weight: normal; font-size: 10pt; color: #212116}\n");
      out.write("   .mailtext      {left:5; font-family: Arial; font-weight: normal; font-size: 10pt; color: #212116}      <!--¿ØÖÆÎÄ±¾ÓÊ¼þµÄÏÔÊ¾¸ñÊ½-->\n");
      out.write("   .maildiv       {position:relative; top: 10; left:5; width:90%; font-family: Helvetica, Arial; font-size: 8pt;}   <!-- ¿ØÖÆ HTML ÓÊ¼þµÄ¿ò¼Ü-->\n");
      out.write("\n");
      out.write("   <!-- ¶¨Òå²Ëµ¥ÇøµÄ CSS -->\n");
      out.write("   .fldrsign {font-family: Arial; font-weight: normal; font-size  : 10pt; color:white}\n");
      out.write("   .fldrroot {font-family: Arial; font-weight: normal; font-size  : 10pt; color:white}\n");
      out.write("   .fldritem {\n");
      out.write("   font-family: Arial;\n");
      out.write("   font-size  : 10pt; font-size:12px;\n");
      out.write("   color:#000000;\n");
      out.write("   font-weight:bold;\n");
      out.write("   height:25px;\n");
      out.write("   }\n");
      out.write("\n");
      out.write("   .email {font-family: Arial; font-weight: normal; font-size  : 9pt; color:white}\n");
      out.write("\n");
      out.write("   .tablehead\t       {background-color: #DCECFB;}\n");
      out.write("   .tablebanner        {background-image: url(/GMS/html/cn/images/bg-table-line.gif);}\n");
      out.write("   .tablemaillist      {background-color: silver; bordercolor: #ffffff }\n");
      out.write("   .tablemaillisthead  {background-color:#DCECFB;}\n");
      out.write("   .tablemaillistitem  {background-color: #fafafa;}\n");
      out.write("\n");
      out.write("   .gmstitle {font-family: Helvetica, Arial; font-size: 15pt; font-weight: bold}\n");
      out.write("\n");
      out.write(".db {border-collapse: collapse;background-color:#dcecfb; border-color: #cccccc;}\n");
      out.write(".db td {border-color: #333333; }\n");
      out.write("\n");
      out.write("   </STYLE>\n");
      out.write('\r');
      out.write('\n');
      com.asiainfo.ysrman.xc.XCUpdate queryBean = null;
      synchronized (request) {
        queryBean = (com.asiainfo.ysrman.xc.XCUpdate) _jspx_page_context.getAttribute("queryBean", PageContext.REQUEST_SCOPE);
        if (queryBean == null){
          queryBean = new com.asiainfo.ysrman.xc.XCUpdate();
          _jspx_page_context.setAttribute("queryBean", queryBean, PageContext.REQUEST_SCOPE);
        }
      }
      out.write('\r');
      out.write('\n');
queryBean.progressRequest(request);
      out.write("\r\n");
      out.write("\r\n");
      out.write("<SCRIPT LANGUAGE=\"JAVASCRIPT\" type=\"text/javascript\">\r\n");
      out.write("\r\n");
      out.write("   function updateService(){\r\n");
      out.write("     document.mainForm.submit();\r\n");
      out.write("   }\r\n");
      out.write("\r\n");
      out.write("</SCRIPT>\r\n");
      out.write("</head>\r\n");
      out.write("\r\n");
      out.write("<body bgcolor=\"#ffffff\">\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<form method=\"post\" name=\"mainForm\" action=\"xcupdate.jsp\">\r\n");
      out.write("  <input type=\"hidden\" name=\"operation\" value=\"update\"/>\r\n");
      out.write("  <input type=\"hidden\" name=\"mobile\" value=\"");
      out.print(queryBean.getMobile());
      out.write("\"/>\r\n");
      out.write("  <input type=\"hidden\" name=\"content\" value=\"");
      out.print(queryBean.getContent());
      out.write("\"/>\r\n");
      out.write("  <input type=\"hidden\" name=\"time\" value=\"");
      out.print(queryBean.getTime());
      out.write("\"/>\r\n");
      out.write("        ");

	if(queryBean.getOperation()!=null){//update
        
      out.write("\r\n");
      out.write("        <SCRIPT LANGUAGE=\"JAVASCRIPT\" type=\"text/javascript\">\r\n");
      out.write("\r\n");
      out.write("  alert(\"更改完毕。\");\r\n");
      out.write("  //window.opener.location.reload();//刷新父窗口\r\n");
      out.write("  window.close();//关闭本窗口\r\n");
      out.write("</SCRIPT>\r\n");
      out.write("        ");

        }else{
        
      out.write("\r\n");
      out.write("   <div align=\"center\" class='gmstitle'>炫彩铃人工赠送结果</div>\r\n");
      out.write("<hr/>\r\n");
      out.write("<table border=\"0\" class=\"db\">\r\n");
      out.write("\r\n");
      out.write("\t<tr class=\"text\">\r\n");
      out.write("              <td align=\"left\" colspan=\"2\">\r\n");
      out.write("               手机号码： ");
      out.print(queryBean.getMobile());
      out.write("<br><br>\r\n");
      out.write("               铃声：\r\n");
      out.write("               ");

                        String content = "";
                        //爱不是对不起", "候鸟之城", "无法防御", "校园新主张
                        if(queryBean.getContent().equals("1")){
                          content = queryBean.getContent() + ":爱不是对不起";
                        }else  if(queryBean.getContent().equals("2")){
                          content = queryBean.getContent() + ":候鸟之城";
                        } if(queryBean.getContent().equals("3")){
                          content = queryBean.getContent() + ":无法防御";
                        } if(queryBean.getContent().equals("4")){
                          content = queryBean.getContent() + ":校园新主张";
                        }
                        
      out.write("\r\n");
      out.write("                      ");
      out.print(content);
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("        </td>\r\n");
      out.write("        </tr>\r\n");
      out.write("        <tr class=\"text\">\r\n");
      out.write("              <td height=\"30\" align=\"left\" colspan=\"2\"> </td>\r\n");
      out.write("        </tr>\r\n");
      out.write("          <tr class=\"text\">\r\n");
      out.write("              <td align=\"left\" colspan=\"2\">\r\n");
      out.write("\r\n");
      out.write("              手动设置状态:<select name=\"status\">\r\n");
      out.write("              <option value=\"8\">赠送成功</option>\r\n");
      out.write("              <option value=\"7\">赠送失败</option>\r\n");
      out.write("              </select>\r\n");
      out.write("              <br>\r\n");
      out.write("              描述：\r\n");
      out.write("              <textarea name=\"des\" cols=\"35\" rows=\"5\"></textarea>\r\n");
      out.write("              </td>\r\n");
      out.write("            </tr>\r\n");
      out.write("             <tr class=\"text\">\r\n");
      out.write("              <td height=\"25\" align=\"left\" colspan=\"2\"> </td>\r\n");
      out.write("        </tr>\r\n");
      out.write("        <tr class=\"text\">\r\n");
      out.write("              <td align=\"left\" colspan=\"2\">\r\n");
      out.write("\r\n");
      out.write("              <input class=\"formbutton\" type=\"button\" name=\"update\" value=\" 确定... \" onClick=\"javascript:updateService();return false;\">\r\n");
      out.write("\r\n");
      out.write("              </td>\r\n");
      out.write("            </tr>\r\n");
      out.write("\r\n");
      out.write("</table>\r\n");

        }
         
      out.write("\r\n");
      out.write("\r\n");
      out.write("</form>\r\n");
      out.write("</body>\r\n");
      out.write("</html>\r\n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}
